import { Component, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.less']
})
export class FooterComponent implements OnInit {

  public msg: string = 'footer组件的msg'

  @Output() public outer: any = new EventEmitter<string>()

  constructor() { }

  ngOnInit(): void {
  }

  run() {
    console.log('footer组件的run方法')
  }

  send() {
    this.outer.emit('msg from footer')
  }

}
